  {extend name="public/common"} {block name="body"}
<title>基本设置</title>
</head>
<style type="text/css">
	.bg-1 {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
}
 .radius:hover{
 	color: #fff;
	border-color: #66b1ff;
	background-color: #66b1ff;
 }
 span:hover{
 	color: #333;
 }
 .btn-primary {
    color: #fff;
    background-color: #409eff;
    border-color: #409eff;
    height: 31px;
    border-radius: 5px;
    font-size: 14px;
    line-height: 24px !important;
}
</style>
<body>
  <nav class="breadcrumb">
    <i class="Hui-iconfont">&#xe67f;</i>
    
    财务管理
    <span class="c-gray en">&gt;</span>
    财务汇总
    <a class="btn btn-success radius r"
      style="line-height: 1.6em; margin-top: 3px"
      href="javascript:location.replace(location.href);" title="刷新">
      <i class="Hui-iconfont">&#xe68f;</i>
    </a>
  </nav>
  <div style="padding:20px;height:30px;">
  	
  	<div class="new_box">
<div class="text-c" style="margin-top:10px;margin-bottom: 48px">
    <form action="" enctype="application/x-www-form-urlencoded" method="post" class="l" style="margin-left:20px;">
    日期范围：
    <input type="text" name="sDate1" value="{:input('post.sDate1')}" onfocus="WdatePicker({maxDate:'%y-%M-%d'})" id="logmin" class="input-text Wdate" style="width:120px;">
    -
    <input type="text" name="sDate2" value="{:input('post.sDate2')}"  onfocus="WdatePicker({maxDate:'%y-%M-%d'})" id="logmax" class="input-text Wdate" style="width:120px;">
    <button class="btn btn-success" type="submit"><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
  </form>
 <span class="l" style="margin-left:30px;"><a {if(input('get.data')==0)}style="background:#e5e5e5;border-color: #e5e5e5;color: #333;"{/if} class="btn btn-primary radius"   href="{:url('recharge/financialSummary')}?data=0"> 今日</a></span>
 <span class="l" style="margin-left:5px;"><a {if(input('get.data')==4)}style="background:#e5e5e5;border-color: #e5e5e5;color: #333;"{/if} class="btn btn-primary radius"   href="{:url('recharge/financialSummary')}?data=4"> 昨日</a></span>
 <span class="l" style="margin-left:5px;"><a {if(input('get.data')==1)}style="background:#e5e5e5;border-color: #e5e5e5;color: #333;"{/if} class="btn btn-primary radius"   href="{:url('recharge/financialSummary')}?data=1"> 本周</a></span>
 <span class="l" style="margin-left:5px;"><a {if(input('get.data')==5)}style="background:#e5e5e5;border-color: #e5e5e5;color: #333;"{/if} class="btn btn-primary radius"   href="{:url('recharge/financialSummary')}?data=5"> 上周</a></span>
 <span class="l" style="margin-left:5px;"><a {if(input('get.data')==2)}style="background:#e5e5e5;border-color: #e5e5e5;color: #333;"{/if} class="btn btn-primary radius"   href="{:url('recharge/financialSummary')}?data=2"> 本月</a></span>
 <span class="l" style="margin-left:5px;"><a {if(input('get.data')==3)}style="background:#e5e5e5;border-color: #e5e5e5;color: #333;"{/if} class="btn btn-primary radius"   href="{:url('recharge/financialSummary')}?data=3"> 上月</a></span>
 <span class="l" style="margin-left:5px;"><a {if(input('get.data')==6)}style="background:#e5e5e5;border-color: #e5e5e5;color: #333;"{/if} class="btn btn-primary radius"   href="{:url('recharge/financialSummary')}?data=6"> 全年</a></span>
  </div>

     <div class="page-container dataTables_wrapper">
      <div id="tab-system" class="HuiTab">
        <div class="tabCon">
          <div class="mt-20">
            <table
              class="table table-border table-bordered table-bg table-hover table-sort table-responsive">
              <thead>
                <tr class="text-c">
                  <th>收入</th>
                  <th>收入金额</th>
                  <th>支出</th>
                  <th>支出明细</th>
                </tr>
              </thead>
              <tbody>
  
                <tr class="text-c">
                  <td>线下支付</td>
                  <td><a href="javascript:fav_alert('线下支付','{:url(\'Recharge/unlineList\')}?start={$start}&end={$end}');"><font color="red">{$xszf.total_je?$xszf.total_je:'0'}</font></a> ({$xszf.total_count}笔) ({$xszf.total_user}人)</td>
                  <td>会员出款</td>
                  <td><a href="javascript:fav_alert('会员出款','{:url(\'Recharge/txjlList\')}?start={$start}&end={$end}');"><font color="red">{$txjl.total_je?$txjl.total_je:'0'}</font></a> ({$txjl.total_count}笔) ({$txjl.total_user}人)</td>
                </tr>
                <tr class="text-c">
                  <td>人工存入</td>
                  <td><a href="javascript:fav_alert('人工存入','{:url(\'Recharge/rgcrList\')}?start={$start}&end={$end}');"><font color="red">{$rgcr.total_je?$rgcr.total_je:'0'}</font></a> ({$rgcr.total_count}笔) ({$rgcr.total_user}人)</td>
                  <td>满送优惠</td>
                  <td><a href="javascript:fav_alert('满送优惠','{:url(\'Recharge/msFavList\')}?start={$start}&end={$end}');"><font color="red">{$ms_all.total_je?$ms_all.total_je:'0'}</font></a> ({$ms_all.total_count}笔) ({$ms_all.total_user}人)</td>
                </tr>
                <tr class="text-c">
                  <td>线上支付</td>
                  <td><a href="javascript:fav_alert('线上支付','{:url(\'Recharge/onlineList\')}?start={$start}&end={$end}');"><font color="red">{$xxcr.total_je?$xxcr.total_je:'0';}</font></a> ({$xxcr.total_count}笔) ({$xxcr.total_user}人)</td>

                  <td>等级优惠</td>
                  <td><a href="javascript:fav_alert('等级优惠','{:url(\'Recharge/levelFavList\')}?start={$start}&end={$end}');"><font color="red">{$level_all.total_je?$level_all.total_je:'0'}</font></a> ({$level_all.total_count}笔) ({$level_all.total_user}人)</td>
                </tr>
                <tr class="text-c">
                  <td>代理返佣</td>
                  <td><a href="javascript:fav_alert('代理返佣','{:url(\'Recharge/dlfyDetail\')}?start={$start}&end={$end}');"><font color="red">{$dlyj.balance?$dlyj.balance:'0'}</font></a> ({$dlyj.uid}笔) ({$dlyj.agent}人)</td>

                  <td>注册优惠</td>
                  <td><a href="javascript:fav_alert('注册优惠','{:url(\'Recharge/regFavList\')}?start={$start}&end={$end}');"><font color="red">{$reg_all.total_je?$reg_all.total_je:'0'}</font></a> ({$reg_all.total_count}笔) ({$reg_all.total_user}人)</td>
                </tr>
                <tr class="text-c">
                  <td colspan="2"></td>
                  <td>彩金优惠</td>
                  <td><a href="javascript:fav_alert('彩金优惠','{:url(\'Recharge/cjFavList\')}?start={$start}&end={$end}');"><font color="red">{$cj_all.total_je?$cj_all.total_je:'0'}</font></a> ({$cj_all.total_count}笔) ({$cj_all.total_user}人)</td>
                </tr>
                <tr class="text-c">
                  <td colspan="2"></td>
                  <td>返水优惠</td>
                  <td><a href="javascript:fav_alert('返水优惠','{:url(\'Recharge/fsFavList\')}?start={$start}&end={$end}');"><font color="red">{$fs_all.total_je?$fs_all.total_je:'0'}</font></a> ({$fs_all.total_count}笔) ({$fs_all.total_user}人)</td>
                </tr>
         		<tr class="text-c">
                  <td colspan="4">实际盈亏：<font color="red">{$profit_and_loss}</font> 元【 实际盈亏 = 线下支付 + 人工存入 + 线上支付 - 会员出款 】</td>
                </tr>
              </tbody>
            </table>
          </div>
        </div>
      </div>

    </div>
    </div>

    </div>

{/block}{block name="js"}

 <script type="text/javascript" src="__SYSMET__/lib/My97DatePicker/4.8/WdatePicker.js"></script> 
<script type="text/javascript">
    $(function() {
  $('.skin-minimal input').iCheck({
    checkboxClass : 'icheckbox-blue',
    radioClass : 'iradio-blue',
    increaseArea : '20%'
  });
  $("#tab-system").Huitab({
    index : 0
  });
});
</script>
<script type="text/javascript">
	function fav_alert(title,url){
		var index = layer.open({
			type: 2,
			title: title,
			area: ['90%', '90%'],
			content: url
		});
	}
	</script>

{/block}
